class message {
    msg:{[x: number]: any} = {};

    addMsg(id: number, func: any){
        this.msg[id] = func;
    }
}

export default new message();